<?php

require_once( 'flexical/admin/response.php' );

abstract class Flexical_Admin_Basic_Format_Response extends Flexical_Admin_Response
{
	public $format;

	public $formats;

	public function __construct( $formats = null, $format = null )
	{
		$this->format = $format;
		$this->formats = $formats;
	}
}

class Flexical_Admin_Show_Formats_Response extends Flexical_Admin_Basic_Format_Response
{
	public $canceled = false;

	public function __construct( $formats, $canceled )
	{
		parent::__construct( $formats );
		$this->canceled = $canceled;
	}
}

class Flexical_Admin_Create_Format_Response extends Flexical_Admin_Basic_Format_Response
{
}

class Flexical_Admin_Update_Format_Response extends Flexical_Admin_Basic_Format_Response
{
}

class Flexical_Admin_Delete_Format_Response extends Flexical_Admin_Basic_Format_Response
{
}

class Flexical_Admin_View_Format_Response extends Flexical_Admin_Basic_Format_Response
{
}

class Flexical_Admin_Edit_Format_Response extends Flexical_Admin_Basic_Format_Response
{
	public function __construct( $format )
	{
		parent::__construct( null, $format );
	}
}

class Flexical_Admin_Confirm_Delete_Format_Response extends Flexical_Admin_Basic_Format_Response
{
	public function __construct( $format )
	{
		parent::__construct( null, $format );
	}
}

class Flexical_Admin_Delete_All_Formats_Response extends Flexical_Admin_Basic_Format_Response
{
	public $confirmed = false;

	public function __construct( $formats, $confirmed )
	{
		parent::__construct( $formats );
		$this->confirmed = $confirmed;
	}
}

class Flexical_Admin_Cant_Delete_Format_In_Use_Response extends Flexical_Admin_Basic_Format_Response
{
	public $listings_using_format = array();

	public function __construct( $format, $listings_using_format, $formats )
	{
		parent::__construct( $formats, $format );
		$this->listings_using_format = $listings_using_format;
	}
}


class Flexical_Admin_Cant_Delete_Formats_In_Use_Response extends Flexical_Admin_Basic_Format_Response
{
	public $listings_using_formats = array();

	public function __construct( $listings_using_formats, $formats )
	{
		parent::__construct( $formats, null );
		$this->listings_using_formats = $listings_using_formats;
	}
}

?>
